package com.ycyoes.demos.netty.demo.protocol;

import lombok.Data;

import static com.ycyoes.demos.netty.demo.protocol.Command.LOGIN_RESPONSE;

@Data
public class LoginResponsePacket extends Packet {
    private Object success;
    private Object reason;

    @Override
    public Byte getCommand() {
        return LOGIN_RESPONSE;
    }

    public boolean isSuccess() {
        return (Boolean) success;
    }
}
